package com.mokio.swaggerdemo.controller;

import com.mokio.swaggerdemo.entity.Users;
import com.mokio.swaggerdemo.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: IDEA Projects
 * @ClassName UsersController
 * @description:
 * @author: Mokio
 * @create: 2024−12-09 20:05
 * @Version 2024 2.2 ; jdk1.8.0_181
 **/
@RestController
public class UsersController {

    @Autowired
    private UsersService usersService;

    @RequestMapping("/save")
    public String save(Users users){
        usersService.saveUsers(users);
        return "ojbk!!";
    }
}
